home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000161_fdc@columbia.edu_Tue Mar 30 15:16:31 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
3KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Trying to connect to a device console via COM 1 (no dialing modem)
Date: 30 Mar 2004 20:16:05 GMT
Organization: Columbia University
Lines: 59
Message-ID: <slrnc6jlc5.ml6.fdc@sesame.cc.columbia.edu>
References: <9c258be2.0403292240.2e00c890@posting.google.com> <9c258be2.0403300608.46d5097f@posting.google.com> <slrnc6j2n7.gj9.fdc@sesame.cc.columbia.edu> <9c258be2.0403301135.51769d45@posting.google.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1080677765 29741 128.59.59.56 (30 Mar 2004 20:16:05 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 30 Mar 2004 20:16:05 GMT
User-Agent: slrn/0.9.8.0 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14873
On 2004-03-30, Klein Bill <collector59ca@yahoo.com> wrote:
: First of all thanks for your answer.
: However I'm still confused.
: In my second script (the one before that ending with the INPUT...) I
: still have an OUTPUT CR followed by an input (waiting for the prompt
: inside the for loop).
:
You mean this one?
if def tsprompt {
for \%i 1 2 1 {
input 1 \m(tsprompt)
if success break
output \13
} lineout show config ;command to send
}
It has a pretty bad syntax error: you can't put a statement right
after a closing brace. You need either a newline or a comma:
if def tsprompt {
for \%i 1 2 1 {
input 1 \m(tsprompt)
if success break
output \13
}
lineout show config ;command to send
}
This one would have INPUT active until it received its first prompt.
Then it breaks from the INPUT loop and so it will not read any more
characters.
: From your explanation Frank, I understand that sending a command like:
:
: lineout show config
:
: won't be echoed to screen if not followed by an input something. Why
: is that so?
: I mean why doesn't Kermit show me at least what it sent nevermind if
: the script ends?
:
No, Kermit doesn't show what it sent, only what it receives. What's
supposed to happen in this case is: Kermit sends "show config" (and a
line terminator), and the router echoes this; subsequent INPUT commands
pick up the echo.
In the (nowadays rare) case that the device on the other end doesn't echo,
you can tell Kermit to:
set duplex half
or:
set local-echo on
(same thing) to make OUTPUT echo locally.
- Frank